// 成功时的code
export const SUCCESS_CODE = 200;

export type MESSAGE_TYPE = 'SUCCESS' | 'ERROR' | 'WARNING' | 'TIP' | 'LOADING';

export const COMMON_MESSAGE: any = {
  SUCCESS: { bgColor: 'rgba(104, 211, 145, 0.1)', color: '#4AC99B', icon: 'message-success', size: 20 },
  ERROR: { bgColor: 'rgba(233, 90, 111, 0.1)', color: '#E95A6F', icon: 'message-error', size: 20 },
  WARNING: { bgColor: 'rgba(255, 199, 0, 0.1)', color: '', icon: 'message-warning', size: 20 },
  TIP: { bgColor: 'rgba(1, 119, 251, 0.102)', color: '', icon: 'message-tip', size: 20 },
  LOADING: { bgColor: '', color: '', icon: 'message-loading', size: 40 },
};

export const COMMON_COLOR = {
  PRIMARY: '#428FFC',
  ERROR: '#F5222D',
};

export const PAGE_DATA = {
  params: { size: 20, page: 1 },
  order: 'null',
  desc: false,
  total: 0,
};

// 通用请求头
export enum ContentTypeEnum {
  Json = 'application/json;charset=UTF-8',
  FormURLEncoded = 'application/x-www-form-urlencoded;charset=UTF-8',
  FormData = 'multipart/form-data;charset=UTF-8',
}
